import request from '@/network/request'

export function login(data) {
  return request({
    url: '/service1/login',
    method: 'post',
    data
  })
}

export function HomeData() {
    return {
      banners : [
        "/img/home/banner/banner1.jpg",
        "/img/home/banner/banner2.jpg",
        "/img/home/banner/banner3.jpg",
      ],
      reView : [
        {
          img:"/img/home/review/review1.jpg",
          title:'标题'
        },
        {
          img:"/img/home/review/review1.jpg",
          title:'标题'
        },
        {
          img:"/img/home/review/review1.jpg",
          title:'标题'
        },
        {
          img:"/img/home/review/review1.jpg",
          title:'标题'
        },
      ]
    }
}


export function getGoods(type,page){
  switch (type) {
    case 'pop':
      if(page===1){
        return [
          {
            pid:1,
            img:'/img/home/goods/goods1.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'45',
            collect:10,
          },
          {
            pid:2,
            img:'/img/home/goods/goods2.jpg',
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'42',
            collect:18,
          },
          {
            pid:3,
            img:'/img/home/goods/goods3.jpg',
            title:'南极人60支纯棉四件套100全棉被套欧式简约床单床笠裸睡床上用品4',
            price:'49',
            collect:56,
          },
          {
            pid:4,
            img:'/img/home/goods/goods4.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===2){
        return [
          {
            pid:5,
            img:'/img/home/goods/goods5.jpg',
            title:'【新品】施耐德官方旗舰店官网开关插座面板五孔带USB家用珍铂白',
            price:'45',
            collect:10,
          },
          {
            pid:6,
            img:'/img/home/goods/goods6.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'42',
            collect:18,
          },
          {
            pid:7,
            img:'/img/home/goods/goods7.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'49',
            collect:56,
          },
          {
            pid:8,
            img:'/img/home/goods/goods8.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:9,
            img:'/img/home/goods/goods9.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'45',
            collect:10,
          },
          {
            pid:10,
            img:'/img/home/goods/goods10.jpg',
            title:'【新品】施耐德官方旗舰店官网开关插座面板五孔带USB家用珍铂白',
            price:'42',
            collect:18,
          },
          {
            pid:11,
            img:'/img/home/goods/goods11.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'49',
            collect:56,
          },
          {
            pid:12,
            img:'/img/home/goods/goods12.jpg',
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:13,
            img:'/img/home/goods/goods13.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'45',
            collect:10,
          },
          {
            pid:14,
            img:'/img/home/goods/goods14.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods15.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'49',
            collect:56,
          },

        ]
      }else{
        return [];
      }
      break
    case 'new':
      if(page===1){
        return [
          {
            pid:15,
            img:'/img/home/goods/goods12.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'45',
            collect:10,
          },
          {
            pid:15,
            img:'/img/home/goods/goods13.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods14.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'49',
            collect:56,
          },
          {
            pid:15,
            img:'/img/home/goods/goods15.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===2){
        return [
          {
            pid:15,
            img:'/img/home/goods/goods2.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'45',
            collect:10,
          },
          {
            img:'/img/home/goods/goods1.jpg',
            pid:15,
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods4.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'49',
            collect:56,
          },
          {
            pid:15,
            img:'/img/home/goods/goods3.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:15,
            img:'/img/home/goods/goods5.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'45',
            collect:10,
          },
          {
            pid:15,
            img:'/img/home/goods/goods6.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods8.jpg',
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'49',
            collect:56,
          },
          {
            pid:15,
            img:'/img/home/goods/goods7.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:15,
            img:'/img/home/goods/goods12.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'45',
            collect:10,
          },
          {
            pid:15,
            img:'/img/home/goods/goods10.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods9.jpg',
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'49',
            collect:56,
          },

        ]
      }else{
        return [];
      }
      break
    case 'sell':
      if(page===1){
        return [
          {
            pid:15,
            img:'/img/home/goods/goods9.jpg',
            title:'轻奢160支长绒棉四件套全棉纯棉100床单床笠欧式裸睡酒店床上用品',
            price:'45',
            collect:10,
          },
          {
            pid:15,
            img:'/img/home/goods/goods12.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:15,
            img:'/img/home/goods/goods10.jpg',
            title:'A类婴儿牛奶绒四件套冬季珊瑚绒双面法莱兰加绒床单被套床上用品4',
            price:'49',
            collect:56,
          },
          {
            pid:15,
            img:'/img/home/goods/goods11.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===2){
        return [
          {
            pid:14,
            img:'/img/home/goods/goods1.jpg',
            title:'施耐德官方旗舰店官网开关插座面板一单开五孔USB插座 绎尚镜瓷白',
            price:'45',
            collect:10,
          },
          {
            pid:14,
            img:'/img/home/goods/goods4.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:14,
            img:'/img/home/goods/goods3.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'49',
            collect:56,
          },
          {
            pid:14,
            img:'/img/home/goods/goods2.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:14,
            img:'/img/home/goods/goods15.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'45',
            collect:10,
          },
          {
            pid:14,
            img:'/img/home/goods/goods10.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:14,
            img:'/img/home/goods/goods1.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'49',
            collect:56,
          },
          {
            pid:14,
            img:'/img/home/goods/goods6.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'90',
            collect:99,
          },
        ]
      }else if(page===3){
        return [
          {
            pid:14,
            img:'/img/home/goods/goods4.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'45',
            collect:10,
          },
          {
            pid:13,
            img:'/img/home/goods/goods3.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'42',
            collect:18,
          },
          {
            pid:13,
            img:'/img/home/goods/goods2.jpg',
            title:'【猫猫家】2021新款真皮复古小脏鞋女男做旧星星脏脏鞋小白鞋女鞋',
            price:'49',
            collect:56,
          },

        ]
      }else{
        return [];
      }
      break
  }
}
